package com.ciaojian.bytedance.controller;

import com.alibaba.fastjson.JSONObject;
import com.ciaojian.bytedance.service.ByteDancePoiService;
import com.ciaojian.core.util.Result;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@ApiModel("抖音门店接口")
@Slf4j
@RestController
@RequestMapping("/store")
public class StoreController {


    @Autowired
    private ByteDancePoiService byteDancePoiService;
    /**
     * 应用未申请 获取抖音店铺poi列表
     * @return
     * @throws Exception
     */
    @ApiModelProperty("获取抖音店铺poi列表")
    @GetMapping("/storePoi/list/")
    public JSONObject storePoi() throws Exception {
        return byteDancePoiService.storePoi();

    }

    @ApiModelProperty("获取店铺列表")
    @GetMapping("/storeList")
    public Result storeList() throws Exception {
        return byteDancePoiService.storeList();

    }

}
